package com.glela.platform.mapper;

import com.glela.platform.model.Version;
import com.glela.platform.model.request.RequestVersionModel;
import com.glela.platform.model.response.ResponseVersion;

public interface VersionMapper {
	
	int deleteByPrimaryKey(Long id);

	int insert(Version record);

	int insertSelective(Version record);

	Version selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Version record);

	int updateByPrimaryKey(Version record);

	/**
	 * 查询最新版本
	 * 
	 * @return
	 */
	public ResponseVersion getNewVersion(RequestVersionModel reVersion);
	
	
	
	/**
	 * 查询可支持的最低版本
	 * 
	 * @return
	 */
	public String getMinimum(int type);
}